import { Injectable } from '@angular/core';
import {SimpleJsonFormatter, SimplePipe} from '../../../ng-tools';
import {StatusPipe} from '../../../ng-tools/src/components/badge/status.pipe';
import {DatePipe} from '@angular/common';

@Injectable({
  providedIn: 'root'
})
export class PesonalGroupMoneyService {
  dateTime: SimpleJsonFormatter = {propName: 'dateTime', displayName: ''};
  sendPacketAccount: SimpleJsonFormatter = {propName: 'sendPacketAccount', displayName: '发包总额'};
  sendPacketUserCount: SimpleJsonFormatter = {propName: 'sendPacketUserCount', displayName: '发包人数'};
  snatchTotalAccount: SimpleJsonFormatter = {propName: 'snatchTotalAccount', displayName: '抢包总额'};
  recieveUserCount: SimpleJsonFormatter = {propName: 'recieveUserCount', displayName: '抢包人数'};
  activeAccount: SimpleJsonFormatter = {propName: 'activeAccount', displayName: '活动支出'};
  flAccount: SimpleJsonFormatter = {propName: 'flAccount', displayName: '返利收益'};
  constructor() {
  }
  get formatter() {
    return [
      this.dateTime,
      this.sendPacketAccount,
      this.sendPacketUserCount,
      this.snatchTotalAccount,
      this.recieveUserCount,
      this.activeAccount,
      this.flAccount,
    ];
  }
}
